package com.loong.common.mvc;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
/**
 * c端基础参数
 */
public class ParamBaseDO implements Serializable {

    private String headerToken;

    private Integer headerUid;

    @NotNull(message = "应用类型不能为空")
    private Integer headerAppType;

    @NotBlank(message = "设备号不能为空")
    private String headerDeviceId;

    @NotNull(message = "设备类型不能为空")
    private Integer headerOsType;

    private String headerUserAgent;

    private String requestIp;

    private String requestUrl;

    private String headerHost;

    /**
     * 应用版本号
     */
    private String headerVersion;

}
